import { request } from "~/utils/request";

//预约订单
export const save = (data: any) => request("/orders/save", data);
//修改订单
export const update = (data: any) => request("/orders/update", data);
//单个订单查询
export const getOrder = (data: any) => request("/orders/getOrder/" + data);
//订单删除
export const orderDel = (data: any) => request("/orders/delete/" + data);
//订单列表
export const orderList = () => request("/orders/list");
//根据用户id获取订单
export const getOrderByUserId = (data: any) =>
  request("/orders/getOrderByUserId/" + data);
